package com.wondertek.poms.dao.repo;

import com.wondertek.poms.dao.po.PrdRuleSecondClassify;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * <p><b>IPcProductRuleDao Description:</b> 二级产品规则 Dao 执行二级产品规则 的查询、修改、新增、删除操作</p>
 * <p>@author 窦再兴</p>
 * <p><b>DATE</b> 2020-10-16 15:56:15</p>
 */
@Repository
public interface IPrdRuleSecondClassifyDao extends JpaRepository<PrdRuleSecondClassify, Long>, JpaSpecificationExecutor<PrdRuleSecondClassify> {
	Set<PrdRuleSecondClassify> findAllByPrdRuleId(Long prdRuleId);

	int deleteAllByPrdRuleId(Long prdRuleId);

	PrdRuleSecondClassify findByPrdRuleId(Long prdRuleId);
}

